package dao;

import entity.GoldPoints;
import exception.DataAccessException;
import org.apache.ibatis.annotations.Param;
import vo.GoldPointsVo;

public interface GoldPointsDao {
    int insertGoldPoints(GoldPoints goldPoints) throws DataAccessException;

    GoldPointsVo selectFrontSumByUid(Integer user_id) throws DataAccessException;

    //根据用户id更新积分或者金币的数量
    int insertGPInfo(@Param("gp") GoldPoints gp, @Param("cost_type") int cost_type);
}
